<!--
@license
Copyright 2020 The TensorFlow Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<npmi-data-selection></npmi-data-selection>
<div
  class="content"
  (mouseup)="resizeReleased.emit()"
  (mousemove)="resizeTriggered.emit($event)"
>
  <div
    *ngIf="sidebarExpanded"
    class="sidebar-container"
    [style.width.px]="sidebarWidth"
  >
    <div class="sidebar-contents">
      <npmi-violin-filters class="violin-filters"></npmi-violin-filters>
      <div class="run-selector">
        <runs-selector></runs-selector>
      </div>
    </div>
  </div>
  <div
    *ngIf="sidebarExpanded"
    class="grabber"
    (mousedown)="resizeGrabbed.emit()"
  ></div>
  <div *ngIf="runActive === true; else noRun" class="analysis-container">
    <npmi-annotations-list class="annotations-list"></npmi-annotations-list>
    <npmi-selected-annotations></npmi-selected-annotations>
  </div>
  <ng-template #noRun>
    <div class="noRun">You need to select at least one run.</div>
  </ng-template>
</div>

<div *ngIf="!sidebarExpanded" class="side-toggle">
  <button
    mat-icon-button
    (click)="toggleSidebarExpanded.emit()"
    aria-label="Toggle Sidebar"
    i18n-aria-label="Label for a button that toggles the sidebar."
  >
    <mat-icon svgIcon="chevron_right_24px"></mat-icon>
  </button>
</div>
